package top.malaoshi.webmvc.info;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

import javax.annotation.Resource;
import java.lang.reflect.Field;

/**
 * 封装成员变量的信息
 */
public class FieldInfo {

    private Field field;
    private Value value;
    private Autowired autowired;
    private Resource resource;

    public FieldInfo(Field field) {
        this.field = field;
    }

    public Value getValue() {
        return value;
    }

    public void setValue(Value value) {
        this.value = value;
    }

    public Autowired getAutowired() {
        return autowired;
    }

    public void setAutowired(Autowired autowired) {
        this.autowired = autowired;
    }

    public Resource getResource() {
        return resource;
    }

    public void setResource(Resource resource) {
        this.resource = resource;
    }

    public Field getField() {
        return field;
    }
}
